home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7260 < prev    next >
Encoding:
Text File  |  1996-08-05  |  5.3 KB  |  105 lines

  1. Path: news.NetVision.net.il!news
  2. From: Jack <avilev@netvision.net.il>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: 680X0 -> PPC translator?
  5. Date: Sat, 13 Apr 1996 10:17:25 -0700
  6. Organization: NetVision LTD.
  7. Message-ID: <316FE1A5.3A1F@netvision.net.il>
  8. References: <31499F8E.26A9@netvision.net.il> <volker.0fw1@vb.franken.de> <19960408.40F118.E8F9@an052.du.pipex.com> <316BD11F.69A7@netvision.net.il> <19960410.413918.CA24@aj158.du.pipex.com>
  9. NNTP-Posting-Host: ts006p16.pop4a.netvision.net.il
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Mailer: Mozilla 2.01 (Win16; I)
  14.  
  15. Mathew Hendry wrote:
  16. > Jack (avilev@netvision.net.il) wrote:
  17. > : Mathew Hendry wrote:
  18. > : >
  19. > : > Jack (avilev@netvision.net.il) wrote:
  20. > : > : Mans Engman wrote:
  21. > : > : > Once you think a bit, it's easy to show (prove!) that static code<->data
  22. > : > : > distinction can't be determined by an algorithm. It is what theorists call
  23. > : > : > an "undecidable" problem. Granted, for a "real" computer with a finite amount
  24. > : > : > of memory/indata it can be "solved" by brute-force search, but this is
  25. > : > : > not a practical approach.
  26. > : > :
  27. > : > : many problems aren't solvable with today's technology, but it doesn't mean
  28. > : > : they're not solvable with other yet-to-devised methods, now do they??
  29. > : >
  30. > : > Some may be solved by new algorithms, but no finite number of algorithms can
  31. > : > solve all problems. You surely can't be suggesting that your static translator
  32. > : > will contain an infinite number of algorithms - or one infinitely large one.
  33. > : >
  34. > :
  35. > : hell no, the algorithm is definitly not infinite otherwise i wouldn't suggest it
  36. > In that case, it can't work in all cases. There is an inherent indeterminacy
  37. > between code and data which cannot be completely resolved by ANY algorithm
  38. > which you may come up with. This can be proved using a variant of G÷del's
  39. > theorem formulated by Alan Turing.
  40.  
  41. by all means, prove me wrong. be concrete and don't generalize one theorem on this case, please.
  42. code and data can easily be distinguished, if a series of words makes sense as a code section it's
  43. probably code and you can make sure it is by deferring its translation until it is called from some
  44. place else or it simply makes too much sense to be random data. for example: valid jump/calls, references
  45. valid addresses, code instruction sequence maintained w/o being interrupted by some data word which
  46. doesn't make sense as code. what you claim suggests that not any algorithm can solve ALL situations
  47. of a given problem, like how many algorithms exist for adding 2 numbers. there's obviously one.
  48. your inability to deal with more complex problems prevents you from seeing a possible solution. 
  49. just as human can do manual translation of the code so can an algorithm.
  50.  
  51. > :                                  your claim is based on the fact that some thing have yet to find
  52. > : their earthly solution, but not all secrets have been uncovered yet, the inability to solve something
  53. > : doesn't make it impossible to solve, there's always some way or another to solve things even in the
  54. > : most indirect and mysterious ways, you can't just claim they're impossible to solve just because you
  55. > : still hav'nt found any workable solution.
  56. > Sorry, no matter how many "indirect and mysterious ways" you invent, the
  57. > problem cannot be solved algorithmically for all cases. That is a mathematical
  58. > truth.
  59.  
  60. oh is that so, you speak as if ALL of the math secrets are discovered to you. well you DON'T know
  61. that for sure. have you tried ALL possible solutions to solve one of your undecidable problems.
  62. i'm not eliminating the impossible, oh no, some things are definitly impossible even to imagine.
  63. but you simply have no CONCRETE basis for your claim. as all the others have already submitted their
  64. ideas of impossible getaway situations which have successfully been dealt with by yours truely,
  65. i suggest you do the same to undermine my theory.
  66.  
  67. > : > In any case, we ARE talking about today's technology...
  68. > :
  69. > : i'm also talking about today's technology.
  70. > Then you can't win.
  71. > : > By the way, what happens if your static translator tries to translate a
  72. > : > program containing bugs? Presumably your algorithm is sophisticated enough to
  73. > : > recognise bugs when it sees them? God help us if you throw AMosaic at it...
  74. > : >
  75. > :
  76. > : it's not trying to solve bugs, it'll translate a buggy program any day.
  77. > Great, try translating a program which in some circumstances attempts to
  78. > execute some of its own data. You immediately have a problem - is that portion
  79. > of the program code or is it data? You cannot decide, for sometimes it appears
  80. > to be data, and sometimes it appears to be code. This indeterminacy remains
  81. > even if the program contains no bugs, and remember, nearly all useful programs
  82. > DO contain bugs.
  83.  
  84. read above paragraphs for hints of solving this simple situation.
  85.  
  86. > You may choose to work around such problems by storing indeterminate program
  87. > fragments in their original form in the translated binary. But these residual
  88. > untranslated pieces will have to be handled on the fly when running the
  89. > translated program. In that case, you no longer have a static translator -
  90. > you have an emulator.
  91.  
  92. no no no, no further run-time analysis is necessary. only static translation.
  93.  
  94. Avi Lev.
  95.